package com.example.yimai.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.yimai.dto.PageResponseDTO;
import com.example.yimai.entity.Product;

import java.util.List;
import java.util.Map;

public interface ProductService extends IService<Product> {

    public PageResponseDTO<Product> queryProduct(String keyword, int pageNum, int pageSize);

    public Product getProduct(Integer id);

    public String addProduct(Map<String, Object> params);

    public String deleteProduct(Integer id);

    public String updateProduct(Map<String, Object> params);

    public List<Product> getSameCategoryProducts(String id);

}
